package tw.com.softleader.fire.setting.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tw.com.softleader.fire.common.dao.GenericDao;
import tw.com.softleader.fire.common.service.GenericService;
import tw.com.softleader.fire.setting.dao.RoadCodeDao;
import tw.com.softleader.fire.setting.entity.RoadCodeEntity;
/**
Author:Billy
*/

@Service
public class RoadCodeService extends GenericService<RoadCodeEntity> {
	@Autowired
	private RoadCodeDao dao;
	
	@Override
	protected GenericDao<RoadCodeEntity> getDao() {
		return dao;
	}
	protected RoadCodeDao getRoadCodeDao(){
		return dao;
	}
	public List<RoadCodeEntity> searchByAddCode(RoadCodeEntity entity){
		return getRoadCodeDao().findByAddCode(entity);
	}
	public List<RoadCodeEntity> searchByRoadCode(RoadCodeEntity entity){
		return getRoadCodeDao().findByRoadCode(entity);
	}
	public List<RoadCodeEntity> searchByName(RoadCodeEntity entity){
		return getRoadCodeDao().findByName(entity);
	}
}
